package commonAdmin.service;

import java.util.List;

import commonAdmin.domain.Page;
import commonAdmin.domain.WebPageSearchCondition;

/**
 *
 *@author Jack
 *2016年1月30日下午8:30:19
 */
public interface BaseService<Domain, ID> {

	ID add(Domain domain);

	boolean update(Domain domain);

	Domain get(ID id);

	Page<Domain> queryForPage(WebPageSearchCondition<Domain> searchCondition, Page<Domain> page);

	boolean delete(ID id);

	List<Domain> listAll();

}
